package com.sf.fy.uav.applet.user.controller;

import com.sf.fy.uav.common.response.user.UserResponse;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.user.rest.UserRest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/user/")
public class UserController {

    @Autowired
    private UserRest userRest;

    @GetMapping("get-user-info")
    public Rs<UserResponse> getByUserId() {
        return Rs.success(userRest.getByUserId());
    }

}
